package tech.ezrealc.fall2023.service;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tech.ezrealc.fall2023.model.user.UserDTO;
import tech.ezrealc.fall2023.repository.UserRepository;

@Service
@Transactional
public class UserService {

    @Resource
    private UserRepository userRepository;

    public UserDTO getUserInfo (String token) {
        return userRepository.findByToken(token);
    }

}
